<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>zsh | 静思田园</title>
    <meta name="description" content="时不时记录一点点">
    <meta name="generator" content="VitePress v1.5.0">
    <link rel="preload stylesheet" href="/assets/style.D1KHeDuB.css" as="style">
    <link rel="preload stylesheet" href="/vp-icons.css" as="style">
    <script type="module" src="/assets/chunks/metadata.d4b76d32.js"></script>
    <script type="module" src="/assets/app.Cqoht_Of.js"></script>
    <link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
    <link rel="modulepreload" href="/assets/chunks/framework.trnLO_3_.js">
    <link rel="modulepreload" href="/assets/chunks/theme.BNMYWj-o.js">
    <link rel="modulepreload" href="/assets/chunks/katex.BZy9Y_85.js">
    <link rel="modulepreload" href="/assets/chunks/c4Diagram-3d4e48cf.rhyfUO3k.js">
    <link rel="modulepreload" href="/assets/chunks/flowDiagram-66a62f08.BvVfKYLl.js">
    <link rel="modulepreload" href="/assets/chunks/flowDiagram-v2-96b9c2cf.rYAPEXyw.js">
    <link rel="modulepreload" href="/assets/chunks/erDiagram-9861fffd.CQSbaoJM.js">
    <link rel="modulepreload" href="/assets/chunks/gitGraphDiagram-72cf32ee.CjLmC8RV.js">
    <link rel="modulepreload" href="/assets/chunks/ganttDiagram-c361ad54.R_V-FeK5.js">
    <link rel="modulepreload" href="/assets/chunks/infoDiagram-f8f76790.C-2Va9KZ.js">
    <link rel="modulepreload" href="/assets/chunks/pieDiagram-8a3498a8.B9ZVkD7K.js">
    <link rel="modulepreload" href="/assets/chunks/quadrantDiagram-120e2f19.BuonnDHi.js">
    <link rel="modulepreload" href="/assets/chunks/xychartDiagram-e933f94c.C_bIYaUn.js">
    <link rel="modulepreload" href="/assets/chunks/requirementDiagram-deff3bca.RFVzvdjl.js">
    <link rel="modulepreload" href="/assets/chunks/sequenceDiagram-704730f1.UZWxMlyq.js">
    <link rel="modulepreload" href="/assets/chunks/classDiagram-70f12bd4.sipmPMFa.js">
    <link rel="modulepreload" href="/assets/chunks/classDiagram-v2-f2320105.CDkLxQ0T.js">
    <link rel="modulepreload" href="/assets/chunks/stateDiagram-587899a1.CD2ocVZB.js">
    <link rel="modulepreload" href="/assets/chunks/stateDiagram-v2-d93cdb3a.D0qUPm3J.js">
    <link rel="modulepreload" href="/assets/chunks/journeyDiagram-49397b02.CeUUZA2l.js">
    <link rel="modulepreload" href="/assets/chunks/flowchart-elk-definition-4a651766.DkdgpMTf.js">
    <link rel="modulepreload" href="/assets/chunks/timeline-definition-85554ec2.WL9yxus9.js">
    <link rel="modulepreload" href="/assets/chunks/mindmap-definition-fc14e90a.CWC2bxmB.js">
    <link rel="modulepreload" href="/assets/chunks/sankeyDiagram-04a897e0.BXj8OViR.js">
    <link rel="modulepreload" href="/assets/chunks/blockDiagram-38ab4fdb.CPVnJXk5.js">
    <link rel="modulepreload" href="/assets/chunks/virtual_mermaid-config.DDnGl6nM.js">
    <link rel="modulepreload" href="/assets/tools_zsh_index.md.DLB12api.lean.js">
    <meta name="application-name" content="VuePress">
    <meta name="apple-mobile-web-app-title" content="静思田园">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="msapplication-TileColor" content="#3eaf7c">
    <meta name="theme-color" content="#646cff">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
    <script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
  </head>
  <body>
    <div id="app"><div class="Layout" data-v-5d98c3a5><!--[--><!--]--><!--[--><span tabindex="-1" data-v-0f60ec36></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-0f60ec36> Skip to content </a><!--]--><!----><header class="VPNav" data-v-5d98c3a5 data-v-ae24b3ad><div class="VPNavBar" data-v-ae24b3ad data-v-6aa21345><div class="wrapper" data-v-6aa21345><div class="container" data-v-6aa21345><div class="title" data-v-6aa21345><div class="VPNavBarTitle has-sidebar" data-v-6aa21345 data-v-1168a8e4><a class="title" href="/" data-v-1168a8e4><!--[--><!--]--><!--[--><img class="VPImage logo" src="/logo.png" alt data-v-8426fc1a><!--]--><span data-v-1168a8e4>静思田园</span><!--[--><!--]--></a></div></div><div class="content" data-v-6aa21345><div class="content-body" data-v-6aa21345><!--[--><!--]--><div class="VPNavBarSearch search" data-v-6aa21345><!--[--><!----><div id="local-search"><button type="button" class="DocSearch DocSearch-Button" aria-label="搜索文档"><span class="DocSearch-Button-Container"><span class="vp-icon DocSearch-Search-Icon"></span><span class="DocSearch-Button-Placeholder">搜索文档</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-6aa21345 data-v-dc692963><span id="main-nav-aria-label" class="visually-hidden" data-v-dc692963> Main Navigation </span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57></span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/network/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>网络工程师</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/frontend/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>前端</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/English/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>English</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/Scrupy/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>爬虫</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/backend/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>后端</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/bigdata/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>大数据</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/computer/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>计算机基础</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/database/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>数据库</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/docker/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>dorker</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/git/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>Git</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/nodejs/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>Node.js</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/python/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>Python</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/shell/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>shell</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/tools/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>工具</span><!--]--></a><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-6aa21345 data-v-6c893767><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-6c893767 data-v-5337faa4 data-v-1d5665e3><span class="check" data-v-1d5665e3><span class="icon" data-v-1d5665e3><!--[--><span class="vpi-sun sun" data-v-5337faa4></span><span class="vpi-moon moon" data-v-5337faa4></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-6aa21345 data-v-0394ad82 data-v-7bc22406><!--[--><a class="VPSocialLink no-icon" href="https://github.com/loveagri" aria-label="github" target="_blank" rel="noopener" data-v-7bc22406 data-v-bd121fe5><span class="vpi-social-github"></span></a><a class="VPSocialLink no-icon" href="https://gitee.com/loveagri" aria-label target="_blank" rel="noopener" data-v-7bc22406 data-v-bd121fe5><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>码云</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-6aa21345 data-v-bb2aa2f0 data-v-cf11d7a2><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-cf11d7a2><span class="vpi-more-horizontal icon" data-v-cf11d7a2></span></button><div class="menu" data-v-cf11d7a2><div class="VPMenu" data-v-cf11d7a2 data-v-b98bc113><!----><!--[--><!--[--><!----><div class="group" data-v-bb2aa2f0><div class="item appearance" data-v-bb2aa2f0><p class="label" data-v-bb2aa2f0>Appearance</p><div class="appearance-action" data-v-bb2aa2f0><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-bb2aa2f0 data-v-5337faa4 data-v-1d5665e3><span class="check" data-v-1d5665e3><span class="icon" data-v-1d5665e3><!--[--><span class="vpi-sun sun" data-v-5337faa4></span><span class="vpi-moon moon" data-v-5337faa4></span><!--]--></span></span></button></div></div></div><div class="group" data-v-bb2aa2f0><div class="item social-links" data-v-bb2aa2f0><div class="VPSocialLinks social-links-list" data-v-bb2aa2f0 data-v-7bc22406><!--[--><a class="VPSocialLink no-icon" href="https://github.com/loveagri" aria-label="github" target="_blank" rel="noopener" data-v-7bc22406 data-v-bd121fe5><span class="vpi-social-github"></span></a><a class="VPSocialLink no-icon" href="https://gitee.com/loveagri" aria-label target="_blank" rel="noopener" data-v-7bc22406 data-v-bd121fe5><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>码云</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-6aa21345 data-v-e5dd9c1c><span class="container" data-v-e5dd9c1c><span class="top" data-v-e5dd9c1c></span><span class="middle" data-v-e5dd9c1c></span><span class="bottom" data-v-e5dd9c1c></span></span></button></div></div></div></div><div class="divider" data-v-6aa21345><div class="divider-line" data-v-6aa21345></div></div></div><!----></header><div class="VPLocalNav has-sidebar empty" data-v-5d98c3a5 data-v-a6f0e41e><div class="container" data-v-a6f0e41e><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-a6f0e41e><span class="vpi-align-left menu-icon" data-v-a6f0e41e></span><span class="menu-text" data-v-a6f0e41e>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-a6f0e41e data-v-17a5e62e><button data-v-17a5e62e>Return to top</button><!----></div></div></div><aside class="VPSidebar" data-v-5d98c3a5 data-v-319d5ca6><div class="curtain" data-v-319d5ca6></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-319d5ca6><span class="visually-hidden" id="sidebar-aria-label" data-v-319d5ca6> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0 has-active" data-v-c40bc020 data-v-b7550ba0><div class="item" role="button" tabindex="0" data-v-b7550ba0><div class="indicator" data-v-b7550ba0></div><h2 class="text" data-v-b7550ba0>zsh</h2><!----></div><div class="items" data-v-b7550ba0><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b7550ba0 data-v-b7550ba0><div class="item" data-v-b7550ba0><div class="indicator" data-v-b7550ba0></div><a class="VPLink link link" href="/tools/zsh/" data-v-b7550ba0><!--[--><p class="text" data-v-b7550ba0>zsh</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-5d98c3a5 data-v-1428d186><div class="VPDoc has-sidebar has-aside" data-v-1428d186 data-v-39a288b8><!--[--><!--]--><div class="container" data-v-39a288b8><div class="aside" data-v-39a288b8><div class="aside-curtain" data-v-39a288b8></div><div class="aside-container" data-v-39a288b8><div class="aside-content" data-v-39a288b8><div class="VPDocAside" data-v-39a288b8 data-v-3f215769><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-3f215769 data-v-a5bbad30><div class="content" data-v-a5bbad30><div class="outline-marker" data-v-a5bbad30></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-a5bbad30>目录</div><ul class="VPDocOutlineItem root" data-v-a5bbad30 data-v-b933a997><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-3f215769></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-39a288b8><div class="content-container" data-v-39a288b8><!--[--><!--]--><main class="main" data-v-39a288b8><div style="position:relative;" class="vp-doc _tools_zsh_" data-v-39a288b8><div><h1 id="zsh" tabindex="-1">zsh <a class="header-anchor" href="#zsh" aria-label="Permalink to &quot;zsh&quot;">​</a></h1><table tabindex="0"><thead><tr><th>相关网址</th><th>备注</th></tr></thead><tbody><tr><td><a href="https://github.com/ohmyzsh/ohmyzsh" target="_blank" rel="noreferrer">github ohmyzsh</a></td><td><a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins" target="_blank" rel="noreferrer">Plugins</a>， <a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Themes" target="_blank" rel="noreferrer">Themes</a></td></tr><tr><td><a href="https://github.com/zsh-users/zsh-autosuggestions" target="_blank" rel="noreferrer">zsh-autosuggestions</a></td><td></td></tr></tbody></table><h2 id="ubuntu" tabindex="-1">ubuntu <a class="header-anchor" href="#ubuntu" aria-label="Permalink to &quot;ubuntu&quot;">​</a></h2><div class="language-sh line-numbers-mode"><button title="Copy Code" class="copy"></button><span class="lang">sh</span><pre class="shiki one-dark-pro vp-code" style="background-color:#282c34;color:#abb2bf;" tabindex="0"><code><span class="line"><span style="color:#7F848E;font-style:italic;"># install zsh</span></span>
<span class="line"><span style="color:#61AFEF;">sudo</span><span style="color:#98C379;"> apt</span><span style="color:#98C379;"> update</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">sudo</span><span style="color:#98C379;"> apt</span><span style="color:#98C379;"> install</span><span style="color:#D19A66;"> -y</span><span style="color:#98C379;"> wget</span><span style="color:#98C379;"> curl</span><span style="color:#98C379;"> git</span><span style="color:#98C379;"> vim</span><span style="color:#98C379;"> zsh</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># check version</span></span>
<span class="line"><span style="color:#61AFEF;">zsh</span><span style="color:#D19A66;"> --version</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># change shell</span></span>
<span class="line"><span style="color:#61AFEF;">zsh</span></span></code></pre><div class="line-numbers-wrapper" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div><h2 id="centos" tabindex="-1">Centos <a class="header-anchor" href="#centos" aria-label="Permalink to &quot;Centos&quot;">​</a></h2><div class="language-sh line-numbers-mode"><button title="Copy Code" class="copy"></button><span class="lang">sh</span><pre class="shiki one-dark-pro vp-code" style="background-color:#282c34;color:#abb2bf;" tabindex="0"><code><span class="line"><span style="color:#7F848E;font-style:italic;"># update repo source</span></span>
<span class="line"><span style="color:#61AFEF;">sudo</span><span style="color:#98C379;"> sed</span><span style="color:#D19A66;"> -i</span><span style="color:#98C379;"> &#39;s/mirrorlist/#mirrorlist/g&#39;</span><span style="color:#98C379;"> /etc/yum.repos.d/CentOS-</span><span style="color:#E5C07B;">*</span></span>
<span class="line"><span style="color:#61AFEF;">sudo</span><span style="color:#98C379;"> sed</span><span style="color:#D19A66;"> -i</span><span style="color:#98C379;"> &#39;s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g&#39;</span><span style="color:#98C379;"> /etc/yum.repos.d/CentOS-</span><span style="color:#E5C07B;">*</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># install zsh</span></span>
<span class="line"><span style="color:#61AFEF;">sudo</span><span style="color:#98C379;"> yum</span><span style="color:#98C379;"> update</span><span style="color:#D19A66;"> -y</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">sudo</span><span style="color:#98C379;"> yum</span><span style="color:#D19A66;"> -y</span><span style="color:#98C379;"> install</span><span style="color:#98C379;"> wget</span><span style="color:#98C379;"> vim</span><span style="color:#98C379;"> git</span><span style="color:#98C379;"> zsh</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># change shell</span></span>
<span class="line"><span style="color:#61AFEF;">zsh</span></span></code></pre><div class="line-numbers-wrapper" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div><h2 id="mac" tabindex="-1">Mac <a class="header-anchor" href="#mac" aria-label="Permalink to &quot;Mac&quot;">​</a></h2><div class="language-sh line-numbers-mode"><button title="Copy Code" class="copy"></button><span class="lang">sh</span><pre class="shiki one-dark-pro vp-code" style="background-color:#282c34;color:#abb2bf;" tabindex="0"><code><span class="line"><span style="color:#7F848E;font-style:italic;"># install zsh</span></span>
<span class="line"><span style="color:#61AFEF;">brew</span><span style="color:#98C379;"> install</span><span style="color:#98C379;"> zsh</span><span style="color:#98C379;"> zsh-completions</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># change shell</span></span>
<span class="line"><span style="color:#61AFEF;">zsh</span></span></code></pre><div class="line-numbers-wrapper" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h2 id="ohmyzsh" tabindex="-1">ohmyzsh <a class="header-anchor" href="#ohmyzsh" aria-label="Permalink to &quot;ohmyzsh&quot;">​</a></h2><div class="language-sh line-numbers-mode"><button title="Copy Code" class="copy"></button><span class="lang">sh</span><pre class="shiki one-dark-pro vp-code" style="background-color:#282c34;color:#abb2bf;" tabindex="0"><code><span class="line"><span style="color:#7F848E;font-style:italic;"># install ohmyzsh</span></span>
<span class="line"><span style="color:#61AFEF;">sh</span><span style="color:#D19A66;"> -c</span><span style="color:#98C379;"> &quot;$(</span><span style="color:#61AFEF;">curl</span><span style="color:#D19A66;"> -fsSL</span><span style="color:#98C379;"> https://mirror.ghproxy.com/https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#56B6C2;">echo</span><span style="color:#98C379;"> &quot;start download zsh-autosuggestions&quot;</span></span>
<span class="line"><span style="color:#61AFEF;">git</span><span style="color:#98C379;"> clone</span><span style="color:#98C379;"> https://mirror.ghproxy.com/https://github.com/zsh-users/zsh-autosuggestions</span><span style="color:#ABB2BF;"> ${</span><span style="color:#E06C75;">ZSH_CUSTOM</span><span style="color:#ABB2BF;">:-~/.</span><span style="color:#E06C75;">oh-my-zsh</span><span style="color:#ABB2BF;">/</span><span style="color:#E06C75;">custom</span><span style="color:#ABB2BF;">}</span><span style="color:#98C379;">/plugins/zsh-autosuggestions</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># return home dir</span></span>
<span class="line"><span style="color:#56B6C2;">cd</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># fix theme</span></span>
<span class="line"><span style="color:#61AFEF;">sed</span><span style="color:#D19A66;"> -i</span><span style="color:#98C379;"> &#39;s/robbyrussell/ys/g&#39;</span><span style="color:#E06C75;"> $HOME</span><span style="color:#98C379;">/.zshrc</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># add plugins</span></span>
<span class="line"><span style="color:#61AFEF;">sed</span><span style="color:#D19A66;"> -i</span><span style="color:#98C379;"> &#39;s/plugins=(git)/plugins=(git history history-substring-search node npm wd web-search last-working-dir zsh-autosuggestions vi-mode)/g&#39;</span><span style="color:#E06C75;"> $HOME</span><span style="color:#98C379;">/.zshrc</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># flush zshrc</span></span>
<span class="line"><span style="color:#56B6C2;">source</span><span style="color:#E06C75;"> $HOME</span><span style="color:#98C379;">/.zshrc</span></span></code></pre><div class="line-numbers-wrapper" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br></div></div><h2 id="zshrc" tabindex="-1">.zshrc <a class="header-anchor" href="#zshrc" aria-label="Permalink to &quot;.zshrc&quot;">​</a></h2><div class="language-sh line-numbers-mode"><button title="Copy Code" class="copy"></button><span class="lang">sh</span><pre class="shiki one-dark-pro vp-code" style="background-color:#282c34;color:#abb2bf;" tabindex="0"><code><span class="line"><span style="color:#7F848E;font-style:italic;"># If you come from bash you might have to change your $PATH.</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># export PATH=$HOME/bin:/usr/local/bin:$PATH</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Path to your oh-my-zsh installation.</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> ZSH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/.oh-my-zsh&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes</span></span>
<span class="line"><span style="color:#E06C75;">ZSH_THEME</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;ys&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Uncomment the following line to use hyphen-insensitive completion.</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Case-sensitive completion must be off. _ and - will be interchangeable.</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># HYPHEN_INSENSITIVE=&quot;true&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Uncomment the following line to automatically update without prompting.</span></span>
<span class="line"><span style="color:#E06C75;">DISABLE_UPDATE_PROMPT</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;true&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Uncomment the following line to enable command auto-correction.</span></span>
<span class="line"><span style="color:#E06C75;">ENABLE_CORRECTION</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;true&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Uncomment the following line if you want to change the command execution time</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># stamp shown in the history command output.</span></span>
<span class="line"><span style="color:#E06C75;">HIST_STAMPS</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;yyyy-mm-dd&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Which plugins would you like to load?</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Standard plugins can be found in $ZSH/plugins/</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Custom plugins may be added to $ZSH_CUSTOM/plugins/</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Example format: plugins=(rails git textmate ruby lighthouse)</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># Add wisely, as too many plugins slow down shell startup.</span></span>
<span class="line"><span style="color:#E06C75;">plugins</span><span style="color:#56B6C2;">=</span><span style="color:#ABB2BF;">(</span><span style="color:#98C379;">git</span><span style="color:#98C379;"> minikube</span><span style="color:#98C379;"> history</span><span style="color:#98C379;"> history-substring-search</span><span style="color:#98C379;"> node</span><span style="color:#98C379;"> npm</span><span style="color:#98C379;"> wd</span><span style="color:#98C379;"> web-search</span><span style="color:#98C379;"> last-working-dir</span><span style="color:#98C379;"> zsh-autosuggestions</span><span style="color:#98C379;"> vi-mode</span><span style="color:#ABB2BF;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#56B6C2;">source</span><span style="color:#E06C75;"> $ZSH</span><span style="color:#98C379;">/oh-my-zsh.sh</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># You may need to manually set your language environment</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> LANG</span><span style="color:#56B6C2;">=</span><span style="color:#E06C75;">en_US</span><span style="color:#ABB2BF;">.</span><span style="color:#E06C75;">UTF-8</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> LC_ALL</span><span style="color:#56B6C2;">=</span><span style="color:#E06C75;">en_US</span><span style="color:#ABB2BF;">.</span><span style="color:#E06C75;">UTF-8</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># User configuration--------------------------------------------------------------</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#maven</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/Applications/apache-maven-3.8.4/bin:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">&quot;</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/.composer/vendor/bin:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># nvm</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> NVM_DIR</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/.nvm&quot;</span></span>
<span class="line"><span style="color:#ABB2BF;">[ </span><span style="color:#56B6C2;">-s</span><span style="color:#98C379;"> &quot;</span><span style="color:#E06C75;">$NVM_DIR</span><span style="color:#98C379;">/nvm.sh&quot;</span><span style="color:#ABB2BF;"> ] &amp;&amp; </span><span style="color:#61AFEF;">\.</span><span style="color:#98C379;"> &quot;</span><span style="color:#E06C75;">$NVM_DIR</span><span style="color:#98C379;">/nvm.sh&quot;</span><span style="color:#7F848E;font-style:italic;">  # This loads nvm</span></span>
<span class="line"><span style="color:#ABB2BF;">[ </span><span style="color:#56B6C2;">-s</span><span style="color:#98C379;"> &quot;</span><span style="color:#E06C75;">$NVM_DIR</span><span style="color:#98C379;">/bash_completion&quot;</span><span style="color:#ABB2BF;"> ] &amp;&amp; </span><span style="color:#61AFEF;">\.</span><span style="color:#98C379;"> &quot;</span><span style="color:#E06C75;">$NVM_DIR</span><span style="color:#98C379;">/bash_completion&quot;</span><span style="color:#7F848E;font-style:italic;">  # This loads nvm bash_completion</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># nvm</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#editor</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> subl</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&#39;/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl&#39;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> code</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#editor</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#docker-compose</span></span>
<span class="line"><span style="color:#C678DD;">function</span><span style="color:#61AFEF;"> dcd</span><span style="color:#ABB2BF;">(){</span></span>
<span class="line"><span style="color:#ABB2BF;">  (</span><span style="color:#56B6C2;">cd</span><span style="color:#98C379;"> ~/Projects/laradock</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">docker-compose</span><span style="color:#98C379;"> down</span><span style="color:#E5C07B;">$*</span><span style="color:#ABB2BF;">)</span></span>
<span class="line"><span style="color:#ABB2BF;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#C678DD;">function</span><span style="color:#61AFEF;"> dc</span><span style="color:#ABB2BF;">(){</span></span>
<span class="line"><span style="color:#ABB2BF;">  (</span><span style="color:#56B6C2;">cd</span><span style="color:#98C379;"> ~/Projects/laradock</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">docker-compose</span><span style="color:#E5C07B;"> $*</span><span style="color:#ABB2BF;">)</span></span>
<span class="line"><span style="color:#ABB2BF;">}</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#docker-compose</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#composer</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> cs</span><span style="color:#56B6C2;">=</span><span style="color:#ABB2BF;">composer</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pa</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;php artisan&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pm</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;php artisan migrate:refresh --seed&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#composer</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#phpunit</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pu</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;./vendor/bin/phpunit&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pt</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;php artisan test&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> puf</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;php artisan test --filter&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#phpunit</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#java</span></span>
<span class="line"><span style="color:#E06C75;">JAVA_HOME</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">/Library/Java/JavaVirtualMachines/jdk1.8.0_321.jdk/Contents/Home</span></span>
<span class="line"><span style="color:#E06C75;">PATH</span><span style="color:#56B6C2;">=</span><span style="color:#E06C75;">$JAVA_HOME</span><span style="color:#98C379;">/bin:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">:.</span></span>
<span class="line"><span style="color:#E06C75;">CLASSPATH</span><span style="color:#56B6C2;">=</span><span style="color:#E06C75;">$JAVA_HOME</span><span style="color:#98C379;">/lib/tools.jar:</span><span style="color:#E06C75;">$JAVA_HOME</span><span style="color:#98C379;">/lib/dt.jar:.</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> JAVA_HOME</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> CLASSPATH</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#java</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#homestead</span></span>
<span class="line"><span style="color:#C678DD;">function</span><span style="color:#61AFEF;"> homestead</span><span style="color:#ABB2BF;">() {</span></span>
<span class="line"><span style="color:#ABB2BF;">  ( </span><span style="color:#56B6C2;">cd</span><span style="color:#98C379;"> ~/homestead</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">vagrant</span><span style="color:#E5C07B;"> $*</span><span style="color:#ABB2BF;"> )</span></span>
<span class="line"><span style="color:#ABB2BF;">}</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#homestead</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#mysql</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#E06C75;">$PATH</span><span style="color:#ABB2BF;">:/</span><span style="color:#E06C75;">usr</span><span style="color:#ABB2BF;">/</span><span style="color:#E06C75;">local</span><span style="color:#ABB2BF;">/</span><span style="color:#E06C75;">mysql</span><span style="color:#ABB2BF;">/</span><span style="color:#E06C75;">bin</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;/usr/local/opt/mysql@5.7/bin:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#mysql</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># proxy mac</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> p10</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;export all_proxy=&#39;socks5://127.0.0.1:10808&#39;;echo on&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> p789</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;export all_proxy=&#39;socks5://127.0.0.1:7891&#39;;echo on&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> unproxy</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;unset http_proxy;unset https_proxy;unset all_proxy;echo off&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> wifion</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;networksetup -setsocksfirewallproxy Wi-fi 127.0.0.1 7891&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> wifioff</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;networksetup -setsocksfirewallproxystate Wi-fi off&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> ethon</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;networksetup -setsocksfirewallproxy Ethernet 127.0.0.1 7891&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> ethoff</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;networksetup -setsocksfirewallproxystate Ethernet off&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> openall</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;networksetup -setsocksfirewallproxy Wi-fi 127.0.0.1 7891;networksetup -setsocksfirewallproxy Ethernet 127.0.0.1 7891&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> closeall</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;networksetup -setsocksfirewallproxystate Wi-fi off;networksetup -setsocksfirewallproxystate Ethernet off&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># proxy</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># pnpm</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PNPM_HOME</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/Library/pnpm&quot;</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$PNPM_HOME</span><span style="color:#98C379;">:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> p</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;pnpm&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pd</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;pnpm dev&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pdd</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;pnpm docs:dev&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> pdb</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;pnpm docs:build&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># pnpm end</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># vim</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> v</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;vim &quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> vi</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;vim &quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#vim</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#yarn</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> y</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;yarn&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> ya</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;yarn add&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> yr</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;yarn remove&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> yd</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;yarn dev&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> yb</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;yarn build&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#yarn</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># git</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gs</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git status&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gc</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git commit -m &quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gl</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git log --graph --pretty=format:&#39;%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset&#39; --abbrev-commit&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gb</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git branch&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> ga</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git add -A&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> go</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git checkout&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gp</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git push&quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gac</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git commit -am &quot;</span></span>
<span class="line"><span style="color:#C678DD;">alias</span><span style="color:#E06C75;"> gcl</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;git checkout . &amp;&amp; git clean -df&quot;</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;"># git</span></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#publish note start</span></span>
<span class="line"><span style="color:#C678DD;">function</span><span style="color:#61AFEF;"> np</span><span style="color:#ABB2BF;">(){</span></span>
<span class="line"><span style="color:#ABB2BF;">   (</span><span style="color:#56B6C2;">cd</span><span style="color:#98C379;"> ~/Note/note</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">sh</span><span style="color:#98C379;"> deploy.sh</span><span style="color:#E5C07B;"> $*</span><span style="color:#ABB2BF;"> )</span></span>
<span class="line"><span style="color:#ABB2BF;">}</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#publish note end</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/.yarn/bin:</span><span style="color:#E06C75;">$HOME</span><span style="color:#98C379;">/.config/yarn/global/node_modules/.bin:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">&quot;</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> HOMEBREW_BOTTLE_DOMAIN</span><span style="color:#56B6C2;">=</span><span style="color:#E06C75;">https</span><span style="color:#ABB2BF;">://</span><span style="color:#E06C75;">mirrors</span><span style="color:#ABB2BF;">.</span><span style="color:#E06C75;">ustc</span><span style="color:#ABB2BF;">.</span><span style="color:#E06C75;">edu</span><span style="color:#ABB2BF;">.</span><span style="color:#E06C75;">cn</span><span style="color:#ABB2BF;">/</span><span style="color:#E06C75;">homebrew-bottles</span></span>
<span class="line"><span style="color:#C678DD;">export</span><span style="color:#E06C75;"> PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">&quot;/usr/local/opt/mysql-client/bin:</span><span style="color:#E06C75;">$PATH</span><span style="color:#98C379;">&quot;</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#note</span></span>
<span class="line"><span style="color:#C678DD;">function</span><span style="color:#61AFEF;"> note</span><span style="color:#ABB2BF;">() {</span></span>
<span class="line"><span style="color:#ABB2BF;">   ( </span><span style="color:#56B6C2;">cd</span><span style="color:#98C379;"> ~/Note/note</span><span style="color:#ABB2BF;"> &amp;&amp; </span><span style="color:#61AFEF;">sh</span><span style="color:#98C379;"> deploy.sh</span><span style="color:#E5C07B;"> $*</span><span style="color:#ABB2BF;"> )</span></span>
<span class="line"><span style="color:#ABB2BF;">}</span></span>
<span class="line"><span style="color:#7F848E;font-style:italic;">#note</span></span>
<span class="line"></span>
<span class="line"><span style="color:#E06C75;">PATH</span><span style="color:#56B6C2;">=</span><span style="color:#98C379;">~/.console-ninja/.bin:</span><span style="color:#E06C75;">$PATH</span></span></code></pre><div class="line-numbers-wrapper" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br><span class="line-number">43</span><br><span class="line-number">44</span><br><span class="line-number">45</span><br><span class="line-number">46</span><br><span class="line-number">47</span><br><span class="line-number">48</span><br><span class="line-number">49</span><br><span class="line-number">50</span><br><span class="line-number">51</span><br><span class="line-number">52</span><br><span class="line-number">53</span><br><span class="line-number">54</span><br><span class="line-number">55</span><br><span class="line-number">56</span><br><span class="line-number">57</span><br><span class="line-number">58</span><br><span class="line-number">59</span><br><span class="line-number">60</span><br><span class="line-number">61</span><br><span class="line-number">62</span><br><span class="line-number">63</span><br><span class="line-number">64</span><br><span class="line-number">65</span><br><span class="line-number">66</span><br><span class="line-number">67</span><br><span class="line-number">68</span><br><span class="line-number">69</span><br><span class="line-number">70</span><br><span class="line-number">71</span><br><span class="line-number">72</span><br><span class="line-number">73</span><br><span class="line-number">74</span><br><span class="line-number">75</span><br><span class="line-number">76</span><br><span class="line-number">77</span><br><span class="line-number">78</span><br><span class="line-number">79</span><br><span class="line-number">80</span><br><span class="line-number">81</span><br><span class="line-number">82</span><br><span class="line-number">83</span><br><span class="line-number">84</span><br><span class="line-number">85</span><br><span class="line-number">86</span><br><span class="line-number">87</span><br><span class="line-number">88</span><br><span class="line-number">89</span><br><span class="line-number">90</span><br><span class="line-number">91</span><br><span class="line-number">92</span><br><span class="line-number">93</span><br><span class="line-number">94</span><br><span class="line-number">95</span><br><span class="line-number">96</span><br><span class="line-number">97</span><br><span class="line-number">98</span><br><span class="line-number">99</span><br><span class="line-number">100</span><br><span class="line-number">101</span><br><span class="line-number">102</span><br><span class="line-number">103</span><br><span class="line-number">104</span><br><span class="line-number">105</span><br><span class="line-number">106</span><br><span class="line-number">107</span><br><span class="line-number">108</span><br><span class="line-number">109</span><br><span class="line-number">110</span><br><span class="line-number">111</span><br><span class="line-number">112</span><br><span class="line-number">113</span><br><span class="line-number">114</span><br><span class="line-number">115</span><br><span class="line-number">116</span><br><span class="line-number">117</span><br><span class="line-number">118</span><br><span class="line-number">119</span><br><span class="line-number">120</span><br><span class="line-number">121</span><br><span class="line-number">122</span><br><span class="line-number">123</span><br><span class="line-number">124</span><br><span class="line-number">125</span><br><span class="line-number">126</span><br><span class="line-number">127</span><br><span class="line-number">128</span><br><span class="line-number">129</span><br><span class="line-number">130</span><br><span class="line-number">131</span><br><span class="line-number">132</span><br><span class="line-number">133</span><br><span class="line-number">134</span><br><span class="line-number">135</span><br><span class="line-number">136</span><br><span class="line-number">137</span><br><span class="line-number">138</span><br><span class="line-number">139</span><br><span class="line-number">140</span><br><span class="line-number">141</span><br><span class="line-number">142</span><br><span class="line-number">143</span><br><span class="line-number">144</span><br><span class="line-number">145</span><br><span class="line-number">146</span><br><span class="line-number">147</span><br><span class="line-number">148</span><br><span class="line-number">149</span><br><span class="line-number">150</span><br><span class="line-number">151</span><br><span class="line-number">152</span><br><span class="line-number">153</span><br><span class="line-number">154</span><br><span class="line-number">155</span><br><span class="line-number">156</span><br><span class="line-number">157</span><br><span class="line-number">158</span><br><span class="line-number">159</span><br><span class="line-number">160</span><br><span class="line-number">161</span><br><span class="line-number">162</span><br></div></div></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-e257564d><!--[--><!--]--><div class="edit-info" data-v-e257564d><!----><div class="last-updated" data-v-e257564d><p class="VPLastUpdated" data-v-e257564d data-v-e98dd255>最后更新: <time datetime="2024-12-30T14:20:32.000Z" data-v-e98dd255></time></p></div></div><!----></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
    
    
  </body>
</html>